package nettypro.netty.dubborpc.customer;

import nettypro.netty.dubborpc.netty.NettyClient;
import nettypro.netty.dubborpc.publicinterface.HelloService;

/**
 * @ClassName ClientBootstrap
 * @Description TODO
 * @Author zeny
 * @Date 2020/3/28 0028 0:17
 */
public class ClientBootstrap {
    public static final String providerName = "service#impl#";

    public static void main(String[] args) {
        NettyClient customer = new NettyClient();
        HelloService helloService = (HelloService) customer.getBean(HelloService.class, providerName);
        String result= helloService.hello("我是客户端dubbo");
        System.out.println(result);
    }
}
